@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>退款管理</h5>
            </div>
            <div style="display: none">
                <input type="hidden" id="oneChannelValue" value="">
                <input type="hidden" id="twoChannelValue" value="">
                <input type="hidden" id="thrChannelValue" value="">
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3 fatherBtn">
                                <#NameCon id="customerName" name="客户姓名" />
                            </div>
                            <div class="col-sm-3 fatherBtn">
                                <#NameCon id="customerPhone" name="电话" />
                            </div>
                            <div class="col-sm-3 fatherBtn">
                                <#TimeCon id="startRecordTime" name="申请时间" isTime="true"  pattern="YYYY-MM-DD hh:mm:ss" />
                            </div>
                            <div class="col-sm-3 fatherBtn">
                                <#TimeCon id="endRecordTime" name="-" isTime="true"  pattern="YYYY-MM-DD hh:mm:ss" />
                            </div>
                        </div>
                        <div class="form-group addTwo">
                            <label class="col-sm-2 btn addBtn">是否完成退款</label>
                            <div class="col-sm-2">
                                <select class="form-control" id="isRefund" name="isRefund">
                                    <option value="">请选择</option>
                                    <option value="是">是</option>
                                    <option value="否">否</option>
                                </select>
                            </div>
                            <label class="col-sm-1 btn addBtn addBtn_x2">一级渠d道</label>
                            <div class="col-sm-2 addBtn_y2">
                                <select class="form-control" id="oneChannel" name="oneChannel">
                                </select>
                            </div>
                            <label class="col-sm-1 btn addBtn addBtn_x2">二级渠道</label>
                            <div class="col-sm-2 addBtn_y2">
                                <select class="form-control" id="twoChannel" name="twoChannel">
                                </select>
                            </div>
                            <label class="col-sm-1 btn addBtn addBtn_x2">三级渠道</label>
                            <div class="col-sm-2 addBtn_y2">
                                <select class="form-control" id="thrChannel" name="thrChannel">
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-8 search_bt_mobile">
                            <div class="search_bt search_bt_xy" onclick="Refund.search()">搜索</div>
                            <div class="search_bt" onclick="Refund.resetSearch()">重置</div>
                            <div class="other_bt" onclick="Refund.printt()">打印</div>
                        </div>
                        <div class="hidden-xs" id="RefundTableToolbar" role="group">
                            <div class="other_bt" onclick="Refund.refunds()">退款</div>
                            @if(shiro.hasPermission("/refund/delete")){
                            <div class="other_bt" onclick="Refund.delete()">删除</div>
                            @}

                        </div>

                        <#table id="RefundTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/arrival/customer/refund.js"></script>
<script src="${ctxPath}/static/js/common/jsChannel.js"></script>
<script>
    var oneChanneli = document.getElementById("oneChannelValue").value;
    var twoChanneli = document.getElementById("twoChannelValue").value;
    var thrChanneli = document.getElementById("thrChannelValue").value;
    $.post(Feng.ctxPath + "/channel/getChannelsss", function (data) {
        ChannelList = data;
        channelInit('oneChannel', 'twoChannel', 'thrChannel');
    }, "json");
</script>
@}
<style>
    .search_bt, .other_bt {
        cursor: pointer;
        display: inline-block;
        width: 73px;
        height: 27px;
        line-height: 27px;
        color: white;
        text-align: center;
        font-size: 14px;
        border-radius: 20px;
    }

    .search_bt {
        background: url("${ctxPath}/static/img/x18.png") no-repeat;
        background-size: cover;
    }

    .other_bt {
        background: url("${ctxPath}/static/img/x19.png") no-repeat;
        background-size: cover;
    }

    .search_bt_xy {
        margin-bottom: 5px;
    }
</style>